package com.zed.api.games.answer.scene;

import com.zed.api.games.answer.NotSupportProtocolException;
import com.zed.api.games.answer.show.AnswerShowWorld;

import java.util.List;

/**
 * 题库场景,用于管理题库仓储
 *
 * @author Zed
 */
public interface QuestionBankScene {

    /**
     * 添加多个题库
     *
     * @param request {@link AnswerShowWorldRequest},题库请求
     * @return {@link List},主键
     * @throws NotSupportProtocolException, 不支持的协议列外
     */
    List<AnswerShowWorld> add(AnswerShowWorldRequest... request) throws NotSupportProtocolException;

    /**
     * 删除多个题目
     *
     * @param ids {@link List},题目主键
     */
    void delete(List<String> ids);

}
